import { instance, request } from "./request";
//获取店铺列表
export const getShopList = (data) => {
  return instance({
    url: "/Shop/shopList",
    method: "post",
    data,
  });
};

//编辑店铺信息
export const updateShop = (data) => {
  return instance({
    url: "/Shop/update",
    method: "post",
    data: data,
  });
};
//新增店铺
export const addShop = (data) => {
  return instance({
    url: "/Shop/add",
    method: "post",
    data: data,
  });
};

//删除店铺
export const delShop = (data) => {
  return instance({
    url: "/Shop/delete",
    method: "post",
    data: data,
  });
};

//店铺授权
export const shopEmpower = (data) => {
  return instance({
    url: "/Shop/shopEmpower",
    method: "post",
    data: data,
  });
};

//平台列表
export const shopClass = () => {
  return request({
    url: "/index/shopClass",
    method: "get",
  });
};

//选择店铺显示填写密钥
export const portInfoValue = (data) => {
  return request({
    url: "/index/portInfoValue",
    method: "post",
    data,
  });
};

//修改前获取店铺信息详情
export const getUpdateInfo = (data) => {
  return instance({
    url: "/Shop/getUpdateInfo",
    method: "post",
    data: data,
  });
};
